 <div class="row">
       <div class="col-lg-12">
		<div class="row">
          <div class="col-lg-12 col-sm-12 col-xs-12">
            <div class="widget flat radius-bordered">
            
   
              <div class="widget-body">
              
                  <div class="control-group">
                    <div class="radio">
                        <label>
                            <input type="radio" checked="checked" id="TaskOne" name="taskmode">
                            <span class="text">单人任务</span>
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio" class="inverted" id="TaskNumber" name="taskmode">
                            <span class="text">计件任务</span>
                        </label>
                    </div>
                </div>         
                <p></p>
                
                <p><b>设置您的需求赏金：</b></p>
                
                <form data-bv-feedbackicons-validating="glyphicon glyphicon-refresh" data-bv-feedbackicons-invalid="glyphicon glyphicon-remove" data-bv-feedbackicons-valid="glyphicon glyphicon-ok" class="form-horizontal bv-form" id="TaskForm" novalidate="novalidate">
                <div class="row">
                
                <div  class="col-lg-6 col-sm-6" id="SetTaskNumber" style="display:none">

                <div class="input-group">
                    <span class="input-group-addon">人数</span>
                    <input name="number" type="text" id="Number" maxlength="4" class="form-control" value="{if !empty($manage['task_number'])}{echo $manage['task_number']}{else}1{/if}"/>
                </div>
                

                </div>
          
                
                
                <div  class="col-lg-6 col-sm-6">
              
                 <div class="input-group">
                <span class="input-group-addon "><b>赏金</b>(元)</span>
                <input name="money" type="text" id="Money" maxlength="6" value="{if !empty($manage['money'])}{echo $manage['money']/100}{else}50{/if}"  data-toggle="tooltip"  data-original-title="悬赏金额" class="form-control" data-bv-field="money"/>

                </div>
                </div>
                
                <!--
                <div  class="col-lg-6 col-sm-6">
              <div class="colored-blue slider-xs noUi-target noUi-ltr noUi-horizontal noUi-background" id="money-minimal"></div>
              <div style="height:20px;">
                                                    <span id="minimal-label1" class="label label-palegreen pull-left">50元</span>
                                                    <span id="minimal-label2" class="label label-darkorange pull-right">10000元</span>
                                                </div>
                </div>
                -->
                
                </div>
                
                
                <input type="hidden" name="datatype" value="json"/>
                <input type="hidden" name="Submit" value="true"/>
                <input type="hidden" name="id" value="{echo $id}"/>
                <input type="hidden" name="task_mode" value="{if !empty($manage['task_mode'])}{echo $manage['task_mode']}{else}1{/if}"/>
  
                </form>  
                
                <div class="row">
              	   <div class="checkbox" id="IsPay" style="display:none">
                        <label>
                            <input name="ispay" type="checkbox">
                            <span class="text">托管赏金 &nbsp; <span class="text-muted">打勾为先托管赏金后中标,未打勾为中标后再托管赏金</span></span>
                        </label>
                    </div>
                    
                </div>
                                        
              </div>
            </div>
          </div>
        </div>
        
        <!--noUiSlider-->
        <script src="{echo AURL}/js/slider/jquery.nouislider.js"></script>
        
         <script>
        {if !empty($manage['money'])}
                  var taskmoney={echo $manage['money']/100};
        {else}
                  var taskmoney=50;
        {/if}
        </script>
        <script>
		

		$("#TaskOne").click( function () { SetTaskMode(1)});
		$("#TaskNumber").click( function () { SetTaskMode(2)});
		var ispay=$('input[name="ispay"]');
		ispay.click( function () {
			if(ispay.is(':checked')){
				$('input[name="task_mode"]').val(1);
				$('#Prop').show();	
			}else{
				$('input[name="task_mode"]').val(2);
				$('#Prop').hide();
				if($('#TaskTop').is(':checked')) {$('#TaskTop').click();}
				if($('#TaskRobots').is(':checked')){$('#TaskRobots').click();}
				if($('#HideTask').is(':checked')){$('#HideTask').click();}
				if($('#HideDraft').is(':checked')){$('#HideDraft').click();}
			}
			SetMoney();
		});
		
		
		function SetTaskMode(type){
			if(!ispay.is(':checked')){
				ispay.click();
			}
			if(type==2){
				$('#IsPay').hide();
				$('#SetTaskNumber').show();
			}else{
				$('#IsPay').show();
				$('#SetTaskNumber').hide();
				$('#Number').val(1);
				$('#Prop').show();	
			}
			SetMoney();
		}
		
        function SetMoney(){
            var paymoney=$('#Number').val() * $('#Money').val();
			
			if(!ispay.is(':checked')){
				paymoney=0;
			}
            
            var tasktop=0;
            if($('#TaskTop').is(':checked')) {
                tasktop=$('#TaskTop').val();
            }
            
            var taskrobots=0;
            if($('#TaskRobots').is(':checked')) {
                taskrobots=$('#TaskRobots').val();
            }
            
            var hidetask=0;
            if($('#HideTask').is(':checked')) {
                hidetask=$('#HideTask').val();
            }
            
            var hidedraft=0;
            if($('#HideDraft').is(':checked')) {
                hidedraft=$('#HideDraft').val();
            }
			
			var promise=0;
			if($('#Promise').is(':checked')) {
                promise=$('#Promise').val();
            }
            
            paymoney+=parseInt(tasktop)+ parseInt(taskrobots)+ parseInt(hidetask)+ parseInt(hidedraft)+parseInt(promise);
            $('#TotalMoney').html(paymoney.toFixed(2));
        }
        
        $(function(){
			SetTaskMode(1);
			
            SetMoney();
            $('#Number,#Money').bind('input propertychange', function() {
                 SetMoney();
            });
            
            $('#TaskTop,#TaskRobots,#HideTask,#HideDraft,#Promise').click(function(){
                 SetMoney();
            });

            
             /*
             $("#money-minimal").noUiSlider({
                    range: [taskmoney, 10000],
                    start: 50,
                    step: 50,
                    handles: 1,
                    connect: "lower",
                    serialization: {
        
                        to: [$("#money"), 'val']
              
                    }
                });
                */
                
                
        });
        </script>
    </div>
           </div>
                  
                <div class="row" id="Prop" style="display:none">
                    <div class="col-xs-12">
                        <div class="well attached top" style="padding-top:8px;padding-bottom:8px;">
                            您可能还需要：
                        </div>
                        <div class="well attached" style="padding-top:5px;padding-bottom:5px;">
                        	 <div class="row">
                        	 <div class="col-xs-10">
                              <div class="row">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" id="TaskTop" name="top" value="{echo C('tasktopfee')}"{if $manage['top']} checked="checked"{/if}>
                                    <span class="text">推荐置顶 &nbsp; <span class="text-muted">您的任务在任务列表中置顶{echo C('tasktoptime')}天</span></span>
                                </label>
                                
                            </div>
                            </div>
                            </div>
                             <div class="col-xs-2">
                            <h5 class="text-right text-danger">{echo C('tasktopfee')}元</h5>
                            </div>
                            </div>
                        </div>
                        
                        <div class="well attached" style="padding-top:5px;padding-bottom:5px;">
                        	 <div class="row">
                        	 <div class="col-xs-10">
                              <div class="row">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" id="HideTask" name="top" value="{echo C('hidetaskfee')}"{if $manage['hidetask']} checked="checked"{/if}>
                                    <span class="text">隐藏任务内容 &nbsp; <span class="text-muted">您的任务内容隐藏登录可见</span></span>
                                </label>
                                
                            </div>
                            </div>
                            </div>
                             <div class="col-xs-2">
                            <h5 class="text-right text-danger">{echo C('hidetaskfee')}元</h5>
                            </div>
                            </div>
                        </div>
                        
                        <div class="well attached" style="padding-top:5px;padding-bottom:5px;">
                        	 <div class="row">
                        	 <div class="col-xs-10">
                              <div class="row">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" id="HideDraft" name="top" value="{echo C('hidedraftfee')}"{if $manage['hidedraft']} checked="checked"{/if}>
                                    <span class="text">隐藏稿件内容 &nbsp; <span class="text-muted">您的任务稿件内容隐藏您与投稿者可见</span></span>
                                </label>
                                
                            </div>
                            </div>
                            </div>
                             <div class="col-xs-2">
                            <h5 class="text-right text-danger">{echo C('hidedraftfee')}元</h5>
                            </div>
                            </div>
                        </div>
                        <div class="well attached" style="padding-top:5px;padding-bottom:5px;">
                         <div class="row">
                        	 <div class="col-xs-10">
                              <div class="row">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" id="TaskRobots" name="robots" value="{echo C('taskrobotsfee')}"{if $manage['robots']} checked="checked"{/if}>
                                    <span class="text">屏蔽搜索引擎 &nbsp; <span class="text-muted">您的任务不会被搜索引擎收录</span></span>
                                </label>
                            </div>
                            </div>
                             </div>
                             <div class="col-xs-2">
                            <h5 class="text-right text-danger">{echo C('taskrobotsfee')}元</h5>
                            </div>
                            </div>
                             
                        </div>
                        
                        
                        <div class="well attached bottom" style="padding-top:5px;padding-bottom:5px;">
                         <div class="row">
                        	 <div class="col-xs-10">
                              <div class="row">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" id="Promise" name="promise" value="{echo C('taskpromisefee')}"{if $manage['promise']} checked="checked"{/if}>
                                    <span class="text">客服代选 &nbsp; <span class="text-muted">您的任务到期前任务客服会帮您选择优质稿件</span></span>
                                </label>
                            </div>
                            </div>
                             </div>
                             <div class="col-xs-2">
                            <h5 class="text-right text-danger">{echo C('taskpromisefee')}元</h5>
                            </div>
                            </div>
                             
                        </div>
                    </div>
                </div>
                
                    <div class="row">
                     <div  class="col-sm-12 text-right">
                		 <span class="color_f60" id="TotalMoney" style="font-size:24px">0</span> 元 (总支付)
                		 </div>
              		  </div>